﻿<UserControl x:Class="Samurai.WorkflowGraph.Views.WorkflowListView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Views="clr-namespace:Samurai.WorkflowGraph.Views" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <DockPanel LastChildFill="False">
            <ListBox DockPanel.Dock="Top" BorderThickness="0" VerticalAlignment="Stretch" ItemsSource="{Binding Workflows, Mode=OneWay}" SelectedItem="{Binding SelectedWorkflow, Mode=TwoWay}">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <Views:WorkflowChoiceView HorizontalAlignment="Center" />
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>

            <DockPanel DockPanel.Dock="Bottom"  LastChildFill="False">
                <Button DockPanel.Dock="Left" Content="OK" Click="OkButtonClick" Width="35" Margin="10,2,2,2" />
                <Button DockPanel.Dock="Right" Content="Cancel" IsCancel="True" Click="CancelButtonClick" Width="40" Margin="0,2,10,2" />
            </DockPanel>
        </DockPanel>
    </Grid>
</UserControl>
